<template>
  <div>
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
import Chart from './chart.vue'
export default {
  data() {
    return {
      cdata: {
        category: [
          "1月",
          "2月",
          "3月",
          "4月",
          "5月",
          "6月",
          "7月",
          "8月",
          "9月",
          "10月",
          "11月",
          "12月",
        ],
        lineData: [
          18092,
          20728,
          24045,
          28348,
          32808,
          36097,
          39867,
          44715,
          48444,
          50415,
          56061,
          62677,
          59521,
          67560,
          18092,
          20728,
          24045,
          28348,
          32808,
          36097,
          39867,
          44715,
          48444,
          50415,
          36097,
          39867,
          44715,
          48444,
          50415,
          50061,
          32677,
          49521,
          32808
        ],
        barData: [],
      }
    };
  },
  components: {
    Chart,
  },
  created() {
    this.cdata.category = this.$store.state.initData.chukuxinxi.map(element => {
      return element.salemonth
    });
    this.cdata.barData = this.$store.state.initData.chukuxinxi.map(element => {
      return element.number
    });
  },
  mounted() {

  },
  methods: {
  }
};
</script>

<style lang="scss" scoped></style>